#!/bin/bash
clear
echo "=========================================================="
echo "Open two terminals."
echo "----------------------------------------------------------"
echo "In one terminal, begin by running these commands:"
echo "  g++ -O2 sw.cpp -o sim"
echo "  gcc PonteNomad.c -o ponte"
echo "  ./sim GRAPH graph filename.bin"
echo "  ./sim OPT pidout pid.csv graph filename.bin "
echo "----------------------------------------------------------"
echo "Then, with the simulator waiting, go to the second terminal"
echo "and execute these commands (adjust the path):"
echo "  export LD_LIBRARY_PATH=/opt/nomad"
echo "  time nomad configNomad.txt"
echo "----------------------------------------------------------"
echo "After that, you may execute this:"
echo " ./sim graph filename.bin pidin pid.csv results sim.csv \\ "
echo "     cases cases.csv"
echo "----------------------------------------------------------"
echo "Now you can make use of Python scripts to plot results."
echo "At this point, you may modify the code (e.g. parameters),"
echo "  using the same graph with the same control."

